package pl.edu.mimuw.irs.rcp.util;

import java.util.ResourceBundle;

public class UITexts {

	// *** Static attributes
	
	public static final String LOGGER_EXCEPTION_MESSAGE = "Failed to generate message. This problem is caused by the following objects:";
	
	private static ResourceBundle bundle;
	
	// *** Static initialization
	
	static {
		bundle = ResourceBundle.getBundle(MessageCode.BUNDLE);
	}
	
	// *** Methods
	
	public static String get(String key) {
		return bundle.getString(key);
	}

	public static String get(MessageCode code) {
		return get(code.getCode());
	}
	
}
